<?xml version="1.0" encoding="utf-8"?>
<!-- From yaxim 0.9.9 source code: https://github.com/yaxim-org/yaxim (GPLv3)
    Improved by Dmitry Tretyakov conformity with the Material Design language
!-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal">

        <RelativeLayout
            android:layout_width="84dip"
            android:layout_height="match_parent"
            android:paddingEnd="8dip"
            tools:ignore="RtlSymmetry">

            <TextView
                android:id="@+id/roster_unreadmsg_cnt"
                style="@style/RosterMessageCounter" />

            <com.google.android.material.imageview.ShapeableImageView
                android:id="@+id/contact_avatar"
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:layout_alignParentEnd="true"
                android:layout_centerHorizontal="false"
                android:layout_centerInParent="false"
                android:layout_centerVertical="true"
                android:adjustViewBounds="false"
                android:contentDescription="User photo"
                android:cropToPadding="false"
                android:longClickable="false"
                android:scaleType="centerCrop"
                app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Circle"
                app:srcCompat="@drawable/ic_person_accent"
                tools:ignore="HardcodedText" />
        </RelativeLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginEnd="12dp"
            android:gravity="center_vertical"
            android:minHeight="52dp"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:gravity="center_vertical"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/contact_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:fontFamily="sans-serif-medium"
                    android:longClickable="false"
                    android:paddingStart="10dp"
                    android:singleLine="true"
                    android:text="Screenname"
                    android:textColor="?android:attr/textColorPrimary"
                    android:textSize="16sp"
                    tools:ignore="HardcodedText,RtlSymmetry" />

                <TextView
                    android:id="@+id/roster_nusers"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingStart="10dp"
                    android:singleLine="true"
                    android:visibility="gone" />
            </LinearLayout>

            <TextView
                android:id="@+id/contact_status"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:paddingStart="10dp"
                android:singleLine="true"
                android:textSize="13sp"
                android:visibility="visible"
                tools:ignore="RtlHardcoded,RtlSymmetry" />

        </LinearLayout>

    </LinearLayout>

</LinearLayout>